<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Vote extends Model
{
    public function user()

    {
        return $this->belongsTo('App\Models\User', 'user_id', 'id')->with('profile');
    }

    public function topic()

    {
        return $this->belongsTo('App\Models\TopicBbs', 'topic_id', 'id');
    }
}
